package com.yl.auth.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2023-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Gangwei implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 岗位id
     */
      @TableId(value = "id", type = IdType.AUTO)
      @ApiModelProperty("id")
    private Long id;

    /**
     * 岗位名称
     */
    @ApiModelProperty("岗位名称")
    private String name;

    /**
     * 创建者
     */
    @ApiModelProperty("创建者")
    private Long creatorId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人姓名
     */
    @ApiModelProperty("创建人姓名")
    @TableField(exist = false)
    private String cname;

    /**
     * 员工名称
     */
    @ApiModelProperty("员工姓名")
    @TableField(exist = false)
    private String yname;

    @TableField(exist = false)
    @ApiModelProperty("权限集合")
    private List<GangweiQuanxian> gqList;

    @TableField(exist = false)
    @ApiModelProperty("关联账号数")
    private Integer num;
}
